﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows;

namespace CommandListPanel
{
    public partial class CommandModelShadow : UserControl
    {
        public bool visi = true;
        public bool VISI
        {
            get { return visi; }
            set
            {
                visi = value;

                if (visi)
                {
                    this.DataContext = new cms() { Visibility = Visibility.Visible };

                }
                else
                {
                    this.DataContext = new cms() { Visibility = Visibility.Hidden };

                }
            }
        }

        public CommandModelShadow()
        {
            InitializeComponent();
            this.DataContext = new cms() { Visibility = Visibility.Visible };
        }
        public class cms
        {
            public Visibility Visibility { get; set; }
        }
    }
}
